//
//  IndexPageVC.m
//  BaseProject
//
//  Created by 范庆忠 on 2019/7/28.
//  Copyright © 2019 qingzhou. All rights reserved.
//

#import "IndexPageVC.h"
#import "NewsViewController.h"

@interface IndexPageVC ()


@end

@implementation IndexPageVC

- (void)viewDidLoad {
    [super viewDidLoad];
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [self setNavigationBar];
}

- (void)loadData {
    
}

- (void)setupSubViews {
    
    
}

- (void)setNavigationBar {
    UIColor *navColor = [UIColor redColor];
    [self.navigationController.navigationBar setBackgroundImage:[[UIColor createImageWithColor:navColor] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] forBarMetrics:UIBarMetricsDefault];
    ////    // 去掉d透明后导航栏下面的黑边
    self.navigationController.navigationBar.shadowImage = [UIImage new];
    self.navigationController.navigationBar.translucent = NO;
    self.navigationController.navigationBar.barTintColor = [UIColor redColor];
    //设置导航栏title的字体及颜色i
    [self.navigationController.navigationBar setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor blackColor],NSForegroundColorAttributeName, [UIFont systemFontOfSize:18],NSFontAttributeName , nil]];
}

- (IBAction)buttonClick:(id)sender {
    NewsViewController *newVC = [NewsViewController new];
    newVC.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:newVC animated:YES];
}


@end
